package com.website.system.service.impl;


import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.website.system.dao.DrugsTypeMapper;
import com.website.system.model.DrugsType;
import com.website.system.service.DrugsTypeService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;

@Service
public class DrugsTypeServiceImpl extends ServiceImpl<DrugsTypeMapper, DrugsType> implements DrugsTypeService {

   @Resource DrugsTypeMapper drugsTypeMapper;


    public int updateDrugsType(Integer id){
        return  drugsTypeMapper.updateDrugs(id);
    }
    public int addDrugsType(DrugsType drugsType){
        return  drugsTypeMapper.addDrugsType(drugsType);
    }
}
